<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动态绑定 Style 对象数组写法</title>
</head>
<body>
<div id="app">
    <h1 v-bind:style="[colordecorate, textdecorate]">Hello, World!</h1>
</div>

<script type="module">

    import {createApp, reactive} from "../../../../../js/vue.esm-browser.js";

    const app = createApp({
        setup() {
            let colordecorate = reactive({
                color: "red",
            })

            let textdecorate = reactive({
                textDecoration: "underline",
            })
            return {
                colordecorate,
                textdecorate,
            }
        }
    })
    app.mount("#app")
</script>
</body>
</html>